package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class FlightInfo implements Serializable {
    private String number;
    private String from;
    private String to;
    private String departureDate;
    private String departureTime;
    private String arrivalDate;
    private String arrivalTime;
    private String status;

    public FlightInfo(String number, String from, String to, String departureDate, String departureTime, String arrivalDate, String arrivalTime, String status) {
        this.number = number;
        this.from = from;
        this.to = to;
        this.departureDate = departureDate;
        this.departureTime = departureTime;
        this.arrivalDate = arrivalDate;
        this.arrivalTime = arrivalTime;
        this.status = status;
    }
}
